package com.my.test.thread.lock;

public class App {

    public synchronized void demO1(){
        System.out.println("demo1");
        demO2();
    }

    public void demO2(){
        synchronized (this){
            System.out.println("demO1");
        }
    }

    public static void main(String[] args) {

        App app = new App();
        app.demO1();
    }
}
